import pprint
a=[0]
for i in range(1,400):
	if i%2 == 0:
		a.append(a[i/2])
	else:
		a.append(a[i/2]+1)
print a
##for i in range(0,100):
   # if a[i]==2:
   #     print i,
